package com.kfyang.manualgear.struct;

import java.util.Collections;
import java.util.List;

/**
 * 分页参数，参数名必须为 page
 */
public class Page {
    private Integer page;
    private Integer size;
    /**
     * order by后面需排序的字段
     */
    private List<Sort> sortList;

    public Page(Integer page, Integer size) {
        this.page = page;
        this.size = size;
        sortList = Collections.emptyList();
    }

    public Page(Integer page, Integer size, List<Sort> sortList) {
        this.page = page;
        this.size = size;
        this.sortList = sortList;
    }

    public Page() {
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public List<Sort> getSortList() {
        return sortList;
    }
}


